package crud.domain;

import lombok.Data;

@Data
public class SysInterface {
    String id;
    String systemId;
    String systemCode;
    String moduleId;
    String moduleCode;
    String resCode;
    String resName;
    String databaseId;
    String databaseSqlMode;
    String databaseSchema;
    String tableName;
    String apiCode;
    String apiName;
    String apiType;     //JSON SQL
    String apiActionType; //增删改查
    String apiTemplate;
    String idField;
    String primaryFields;
    String requiredFields;
    String likeFields;

    public String getUri() {
        return String.format("/%s/%s/%s/%s", systemCode, moduleCode, resCode, apiCode);
    }
}
